﻿@using QuocHoi_TV_Frontend.Models
@{ List<News> lsthotnews = DataModels.GetHotNews(6);}
<div class="tinnoibat">
    <div class="tiletin">
        <a href="">Tin nổi bật</a>
    </div>
    <div class="alltinnoibat">
        <ul>
            @{ string boder = "<li><div class=\"line4\"></div></li>"; int i = 0;}
            @foreach (var item in lsthotnews)
            {
                                                
                <li>
                    <a href="@Url.RouteUrl("NewsDetail", new { controller = "News", action = "NewsDetailHome", cate_name = Util.RemoveSign4VietnameseString(item.Category.CateName), year = DateTime.Parse(item.CreateDate.ToString()).Year, month = DateTime.Parse(item.CreateDate.ToString()).Month, news_title = Util.RemoveSign4VietnameseString(item.NewsTitle), newsID = item.NewsID })" >
                        @Html.Raw(NewsHelper.Sliptsubject(item.NewsTitle, 80))</a>
                </li> 
                if (i < lsthotnews.Count)
                {
                    Html.Raw(boder);
                }
                i = i + 1;
            }



        </ul>
    </div>
</div>
